package org.example2;

import org.springframework.stereotype.Repository;

@Repository("userDao")
public class UserDao {

    String info ="我是UserDao";

    public UserDao() {
        System.out.println("UserDao的无参构造执行了");
    }

    public void query() {
        System.out.println("UserDao中的query执行了");
    }

    @Override
    public String toString() {
        return "UserDao{" +
                "info='" + info + '\'' +
                '}';
    }
}
